/**
 * 订单中心路由
 */

const router = require('koa-router')();
const {
  getOrderListService,
  sendGoodsService
} = require('../../service/orderServer')

//获取订单列表
router.get("/api/manage/getOrderList", async (ctx, next) => {
  let params = ctx.request.query; //获取参数  ctx.query也可以
  await getOrderListService(ctx, params);
})
//订单发货
router.get("/api/manage/sendGoods", async (ctx, next) => {
  let params = ctx.request.query;
  await sendGoodsService(ctx, params);
})

module.exports = router;